package org.example.decorator;

/**
 * @author Zhang Yu
 * @description: 服饰对象
 * @date 2024/5/20 15:11
 */
public class Finery extends Person {
    protected Person component;

    //打扮
    public void decorate(Person component) {
        this.component = component;
    }

    @Override
    public void show() {
        if (component != null) {
            component.show();
        }
    }
}
